{template header.html}
<script>
    $(function(){
        $('#owl-demo').owlCarousel({
            items: 1,
            autoPlay: true
        });
    });
</script>
<div id="owl-demo" class="owl-carousel">
    <a class="item"><img src="{SITE_THEME}images/1.png" alt=""></a>
    <a class="item"><img src="{SITE_THEME}images/2.png" alt=""></a>
</div>
<div id="content" style="padding-top: 0px;">
    <div class="intro-features">

    {php $i=0;}
    {loop $cats $c}
    {php $flag=0;}
    {if $c['parentid']==0 && $c['typeid']==1 && $c['catid']!=27}
    {if $i%3==0}<div class="container">{/if}
    <div class="one-third intro">
        <div class=" myrow">
            <div class="left-flag"></div>
            <h4><a href="{$c['url']}">{$c['catname']}</a></h4>
            {if $c['child']} 
            {php $j=0;}
            {php $child=array();}
            {loop $cats $a}
            {if $a['parentid']==$c['catid']} 
            {php $child[$j++]=intval($a[catid]);}
            {/if} 
            {/loop}
            {/if} 
            {php $child=implode(',',$child);}
            <ul>              
                {list INcatid=$child order=updatetime }
                {if $flag<7}
                <li><a class="anew" href="{$t['url']}">
                <span class="title">{$t['title']}</span>
                <span class="time">{date("m-d", $t['updatetime'])}</span>
                </a></li> 
                {/if}
                {php $flag++;}
                {/list} 
            </ul>  
        </div>
    </div>
    {if $i%3==2}</div>{/if}
    {php $i++;}
    {/if}
    {/loop}
    {if $i%3==1}</div>{/if}

    </div>
    <div class=" clients-wrapp">
        <div class="container">
            {if plugin('link')} <!--判断友情链接插件是否存在，若存在就执行下面的-->
            <div class="flexslider clients-slider "><!-- flex slider starts -->
                <ul class="slides client-block">
                    <li>
                        {list table=link.link order=listorder_asc cache=36000}<!--循环输出友情链接数据，list教程有详细介绍-->
                        <div class="one-fifth">
                            <a href="{$t['url']}" target="_blank" title="{$t['introduce']}" class="tooltip"><img src="{image($t[logo])}" alt="{$t['name']}"/></a>
                        </div>
                        {/list}
                    </li>
                </ul>
            </div><!-- flex slider ends -->
            {/if}
        </div>
    </div>
</div>
{template footer.html}
